import request from '@/utils/request'

// 查询租房-小区信息列表
export function listQuarter(query) {
    return request({
        url: '/mall/quarter/list',
        method: 'get',
        params: query
    })
}

// 查询租房-小区信息详细
export function getQuarter(id) {
    return request({
        url: '/mall/quarter/' + id,
        method: 'get'
    })
}

// 新增租房-小区信息
export function addQuarter(data) {
    return request({
        url: '/mall/quarter',
        method: 'post',
        data: data
    })
}

// 修改租房-小区信息
export function updateQuarter(data) {
    return request({
        url: '/mall/quarter',
        method: 'put',
        data: data
    })
}

// 删除租房-小区信息
export function delQuarter(id) {
    return request({
        url: '/mall/quarter/' + id,
        method: 'delete'
    })
}

// 导出租房-小区信息
export function exportQuarter(query) {
    return request({
        url: '/mall/quarter/export',
        method: 'get',
        params: query
    })
}

// 下载租房-小区信息
export function importTemplate(query) {
    return request({
        url: '/mall/quarter/importTemplate',
        method: 'get',
        params: query
    })
}